package com.itheima.stock.service;

import cn.hutool.http.HttpResponse;
import com.itheima.stock.pojo.domain.*;
import com.itheima.stock.vo.resp.R;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;
import java.util.Optional;

public interface StockService {
    R<List<InnerMarketDomain>> getInnerMarketInfo();

    R<List<StockBlockDomain>> getSectorAll();

    R<PageResult> getStockPageInfo(Integer page, Integer pageSize);

    R<List<StockTopDomain>> getStockIncrease();

    R<Map<String, List>> getStockUpdownCount();

    void getStockExport(HttpServletResponse response, Integer page, Integer pageSize);

    R<Map<String, List>> getStockTradeAmt();

    R<Map> getIncreaseRangeInfo();

    R<List<Stock4MinuteDomain>> getStockMinutesInfo(String code);

    R<List<Stock4EvrDayDomain>> getStockDayKInfo(String code);

    R<List<StockExternalDomain>> getStockExternalInfo();

    R<List<Map<String,String>>> getStockByCode(String searchStr);

    R<StockDescribeDomain> getStockDescribe(String code);

    R<List<Stock4EvrWeekDomain>> getStockWeekKInfo(String code);

    R<StockRtDetailDomain> getStockRtDetail(String code);

    R<List<StockRtScreenDomain>> getStockRtScreenInfo(String code);
}
